package control;
//import db.tables.*;
//import db.parking.beans.*;


public class Main {

	/*public static void main(String[] args) throws Exception {

		System.out.println("Starting Application");
		
		ConnectionManage.getInstance().setDBType(DBType.MYSQL);
		
		AdminManager.displayAllRows();
		
	
		
		
		//-----------------SELECTING ROWS-----------------
		/*int adminId =  InputHelper.getIntegerInput("Select a row : ");
		
		Admin bean = AdminManager.getRow(adminId);
		
		if(bean == null)
				System.err.println("No rows were found");
		else {
			System.out.println("User id : " + bean.getAdminId() );
			System.out.println("username : " + bean.getUserName() );
			System.out.println("password : " + bean.getPassword() );
		}
		*/
		//----------------INSERTING ROWS------------------
		/*Admin bean = new Admin();
		bean.setUserName(InputHelper.getInput("Username :"));
		bean.setPassword(InputHelper.getInput("Password :"));
		
		boolean result = AdminManager.insert(bean);
		
		if(result){
			System.out.println("New row with primary key " + bean.getAdminId() + "was inserted");
		}*/
		
		
		
		//-------------------UPDATE ROW--------------
		/*int adminId = InputHelper.getIntegerInput("Select a row to update: ");

		Admin bean = AdminManager.getRow(adminId);
		if (bean == null) {
			System.err.println("Row not found");
			return;
		}
		
		String password = InputHelper.getInput("Enter new password: ");
		bean.setPassword(password);
		
		if(AdminManager.update(bean)){
			System.out.println("Success!");
		} else {
			System.err.println("whoops!");
		  }*/
		
		//------------------DELETE ROW---------------------
		/*int adminId = InputHelper.getIntegerInput("Select a row to delete: ");
		
		if(AdminManager.delete(adminId)){
			System.out.println("Success!");
		} else {
			System.err.println("Nothing to delete");
		}
		
		ConnectionManage.getInstance().close();
*/
		
		
	
		

//	}
	
}






